package cate.game.chat.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBChat;
import cate.game.role.Role;
import cate.game.role.chat.RoleChat;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "我的聊天信息 の 返回")
public class MyChatDataResp implements MsgOutput {

    @NoteField(value = "我的聊天信息")
    public RoleChat chat;

    public MyChatDataResp(){}

    public MyChatDataResp(Role role) {
        this.chat = role.getChat();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBChat.CHAT_DATA_RESP;
    }
}
